package com.lab.webSocket.repository;

import com.lab.webSocket.dto.UserInfoDto;
import com.lab.webSocket.model.FriendsListEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created by xu_jiaHui on 2017/9/7.
 */
public interface FriendListRepository extends CrudRepository<FriendsListEntity, Long> {

    /**
     * @Description: 通过用户账户获取用户好友列表
     * @author xu_jiaHui
     * @date 2017/9/7 15:58
     */
    public List<UserInfoDto> getFriendListByUserAccount(String userAccount);
}
